package com.sl.au.repository;

import com.sl.au.entity.AfterSaleExperience;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface AfterSaleExperienceRepository extends JpaRepository<AfterSaleExperience, String> {
    @Query(" select m from AfterSaleExperience m where m.customer like '%'+?1+'%' or m.deviceType like '%'+?1+'%' ")
    Page<AfterSaleExperience> getAfterSaleExperienceTitle(String key, Pageable pageable);

    AfterSaleExperience findById(String id);
}
